home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / pascal / tvmouse.exe / TVEDIT.H < prev    next >
C/C++ Source or Header  |  1992-06-10  |  1KB  |  53 lines

  1. /*----------------------------------------------------------*/
  2. /*                                                          */
  3. /*   Turbo Vision 1.0                                       */
  4. /*   Copyright (c) 1991 by Borland International            */
  5. /*                                                          */
  6. /*   Turbo Vision TVEDIT header file                        */
  7. /*----------------------------------------------------------*/
  8.  
  9. class TMenuBar;
  10. class TStatusLine;
  11. class TEditWindow;
  12. class TDialog;
  13.  
  14. const
  15.   cmOpen       = 100,
  16.   cmNew        = 101,
  17.   cmChangeDrct = 102,
  18.   cmDosShell   = 103,
  19.   cmCalculator = 104,
  20.   cmShowClip   = 105;
  21.  
  22. class TEditorApp : public TApplication
  23. {
  24.  
  25. public:
  26.  
  27.     TEditorApp();
  28.  
  29.     virtual void handleEvent( TEvent& event );
  30.     static TMenuBar *initMenuBar( TRect );
  31.     static TStatusLine *initStatusLine( TRect );
  32.     virtual void outOfMemory();
  33.  
  34. private:
  35.  
  36.     TEditWindow *openEditor( const char *fileName, Boolean visible );
  37.     void fileOpen();
  38.     void fileNew();
  39.     void changeDir();
  40.     void dosShell();
  41.     void showClip();
  42.     void tile();
  43.     void cascade();
  44. };
  45.  
  46. extern TEditWindow *clipWindow;
  47.  
  48. ushort execDialog( TDialog *d, void *data );
  49. TDialog *createFindDialog();
  50. TDialog *createReplaceDialog();
  51. ushort doEditDialog( int dialog, ... );
  52.  
  53.